#ifndef TEST_TCP_H
#define TEST_TCP_H

#include "Network/Socket.h"
#include "Network/TcpClient.h"
#include <Util/File.h>
#include <Util/SqlPool.h>
#include <Util/mini.h>
#include "Util/logger.h"
using namespace std;
using namespace toolkit;

class TestClient: public TcpClient {
public:
	using Ptr = std::shared_ptr<TestClient>;
	TestClient();
	~TestClient();
public:
    volatile bool isConnect;

protected:
	virtual void onConnect(const SockException& ex) override;
	virtual void onRecv(const Buffer::Ptr& pBuf) override;
	virtual void onFlush() override;
	virtual void onErr(const SockException& ex) override;
	virtual void onManager() override;
};

#endif